/* === v-tabs === */

.v-tabs {
  &__header {
    border-bottom: @border-base;
    padding: 0;
    position: relative;
    margin: 0 0 15px;
    .v-icon {
      font-size: @font-size-base;
    }
  }
  &__active-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: @color-primary;
    z-index: 1;
    transition: transform .2s cubic-bezier(.645,.045,.355,1);
    list-style: none;
  }
  &__new-tab {
    float: right;
    border: 1px solid #d3dce6;
    height: 18px;
    width: 18px;
    line-height: 18px;
    margin: 12px 0 9px 10px;
    border-radius: 3px;
    text-align: center;
    font-size: 12px;
    color: #d3dce6;
    cursor: pointer;
    transition: all .15s;
    &:hover {
      color: @color-primary;
    }
  }
  &__nav-wrap {
    overflow: hidden;
    margin-bottom: -1px;
    position: relative;

    &.is-scrollable {
      padding: 0 15px;
    }
  }
  &__nav-scroll {
    overflow: hidden;
  }
  &__nav-next, &__nav-prev {
    position: absolute;
    cursor: pointer;
    line-height: 44px;
    font-size: 12px;
    color: @light-silver;
    &:hover {
      color: @color-primary;
    }
  }
  &__nav-next {
    right: 0;
  }
  &__nav-prev {
    left: 0;
  }
  &__nav {
    white-space: nowrap;
    position: relative;
    transition: transform .2s;
    float: left;
  }
  &__item {
    padding: 0 16px;
    height: 42px;
    box-sizing: border-box;
    line-height: 42px;
    display: inline-block;
    list-style: none;
    font-size: @font-size-base;
    color: @gray;
    position: relative;

    &.is-active {
      color: @color-primary;
    }

    &:hover {
      color: @color-primary;
      cursor: pointer;
    }

    &.is-disabled {
      color: @disabled-color;
      cursor: default;
    }
  }
  &__content {
    overflow: hidden;
    position: relative;
  }

  &--card {
    > .v-tabs__header .v-tabs__active-bar {
      display: none;
    }
    > .v-tabs__header .v-tabs__item {
      border: 1px solid transparent;
      transition: all .2s cubic-bezier(.645,.045,.355,1);
      &.is-active {
        border: @border-base;
        border-bottom-color: @white;
        border-radius: 4px 4px 0 0;
      }
    }
  }
}

.slideInRight-transition,
.slideInLeft-transition {
  display: inline-block;
}
.slideInRight-enter {
  animation: slideInRight-enter .2s;
}
.slideInRight-leave {
  position: absolute;
  left: 0;
  right: 0;
  animation: slideInRight-leave .2s;
}
.slideInLeft-enter {
  animation: slideInLeft-enter .2s;
}
.slideInLeft-leave {
  position: absolute;
  left: 0;
  right: 0;
  animation: slideInLeft-leave .2s;
}

@keyframes slideInRight-enter {
  0% {
    opacity: 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%)
  }

  to {
    opacity: 1;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(0);
    transform: translateX(0)
  }
}
@keyframes slideInRight-leave {
  0% {
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1
  }

  100% {
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    opacity: 0
  }
}
@keyframes slideInLeft-enter {
  0% {
    opacity: 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%)
  }

  to {
    opacity: 1;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(0);
    transform: translateX(0)
  }
}
@keyframes slideInLeft-leave {
  0% {
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1
  }

  100% {
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    opacity: 0
  }
}
